package top.yongyan0624.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yongyan
 * @since 2021-09-12
 */
@Data
public class ItemBorrowUser{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long itemId;

    @TableField(exist = false)
    private ItemBorrow item;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long userId;

    @TableField(exist = false)
    private SysUser user;

    private Integer amount;

}
